package IC.AST.nodes;

import IC.AST.*;

/**
 * a length expression
 */
public class LengthExpr extends Expression {
	private Expression array;	// the array specifier

	/**
	 * @param array the array specifier
	 * @param line the node line number
	 * @param column the node column number
	 */
	public LengthExpr(Expression array, int line, int column) {
		super(line,column);
		this.array = array;
	}

	/**
	 * @return the array specifier
	 */
	public Expression getArray() {
		return this.array;
	}

	public Object accept(Visitor v) {
		return v.visit(this);
	}
}
